package com.xue.qecode;

import com.xue.qecode.utils.FileUtils;
import com.xue.qecode.utils.InputUtils;
import com.xue.qecode.utils.QrCodeUtils;

import java.io.File;
import java.util.List;

public class Main {

    public static void main(String[] args) {


        List<String> strings = InputUtils.readTxt("./number.txt");
        boolean orExistsDir = FileUtils.createOrExistsDir("./QrCodeImage");
        System.out.println(orExistsDir);


        if (strings != null) {
            for (int i = 0; i < strings.size(); i++) {
                QrCodeUtils.createQrCode(strings.get(i));
            }
        }
    }
}
